// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import filter from './util/filter.js'

import MyPlugin from '@/plugin/plugin.js'
Vue.use(MyPlugin)


Object.keys(filter).map( item => {
  Vue.filter(item,filter[item])
})


// 部分引入mint-ui
import { Button, Cell ,Swipe, SwipeItem, TabContainer, TabContainerItem , Navbar, TabItem} from 'mint-ui'
Vue.component(Button.name, Button)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(TabContainer.name, TabContainer);
Vue.component(TabContainerItem.name, TabContainerItem);
Vue.component(Navbar.name, Navbar);
Vue.component(TabItem.name, TabItem);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
